package cn.edu.controller;

import cn.edu.domain.PageBean;
import cn.edu.domain.opus;
import cn.edu.domain.teach_work;
import cn.edu.service.lead_OpusService;
import cn.edu.service.lead_WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Davey chan
 */
@RestController
@RequestMapping("/lead_Work")
public class lead_WorkController {
    @Autowired
    private lead_WorkService workService;
    //分页查询
    @RequestMapping("/selectByPage")
    public Result selectByPage(Integer currentPage,
                             Integer pageSize,
                             @RequestBody teach_work t){

        PageBean<teach_work> pageBean = workService.selectByPageAndcondition(currentPage, pageSize,t);
        return new Result(Code.GET_OK,pageBean);
    }


}
